﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Task:NPC
    {
        private  string taskinfo ;
        public string Taskinfo { get => taskinfo; set => taskinfo = value; }

        public Task(string Name, int Health, string Region, string taskinfo) : base(Name, Health, Region) 
        {
            this.taskinfo = taskinfo;
        }

        public override void Speak()
        {
            Console.WriteLine(" 所属城邦：{4}\n {0} (生命值{3}/{3}):\n\n {2}：{1}\n",base.Name,this.Taskinfo,NPCType.任务,this.Health,this.Region);   
        }


    }
}
